package com.fast.cron.common.server;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author leo
 */
@Accessors(chain = true)
@Getter
@Setter
@RequiredArgsConstructor(staticName = "of")
public class AjaxResponseBody implements Serializable {
    @NonNull
    private int code;
    @NonNull
    private String message;
    private Map<String, Object> data = new HashMap<>();
}
